package edu.zueb.sport.filter;

import jakarta.servlet.*;
import jakarta.servlet.annotation.WebFilter;
import java.io.IOException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;

/**
 * @author jasonfu
 * @date 2024/9/13 15:34
 */
@Slf4j
@Order(1)
@WebFilter(filterName = "firstFilter", urlPatterns = "/*", asyncSupported = true)
public class FirstFilter implements Filter {

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
            throws IOException, ServletException {
        log.info("FilterName={}", FirstFilter.class.getName());
        filterChain.doFilter(servletRequest, servletResponse);
    }
}
